<?php
$this->beginBlock('form');
$f = $this->form()->setId('form');

echo $f->renderBegin();
echo $f->createField($this->__('system.label.old_password'), TRUE)
       ->setInput($this->password('oldpassword', 'oldpassword')->addRequiredRule()->addMinLengthRule(6));
echo $f->createField($this->__('system.label.new_password'), TRUE)
       ->setInput($this->password('password', 'password')->addRequiredRule()->addMinLengthRule(6));
echo $f->createField($this->__('system.label.repassword'), TRUE)
       ->setInput($this->password('repassword', 'repassword')->addRequiredRule()->addValidateRule('equalTo', "'#password'"));
echo $f->renderEnd();

$t2 = $this->toolbar();
echo $t2->renderBegin();
echo $t2->renderItem($this->linkButton($this->__('system.button.submit'), "submitForm('form')"));
echo $t2->renderEnd();
$this->endBlock();
echo $this->extend('template'.DS.'form');